


<form action='index.php?ctl=system/setting&act=save_siteinfor' method='post' class="settingform" target="{update:'messagebox'}" id="site_basic" enctype="multipart/form-data">
  <input type='hidden' name='returl' value='index.php?ctl=system/setting&act=siteBasic' />
   <div class="tableform">
   <h4><{t}>&nbsp;&nbsp;&nbsp;&nbsp;商店基本信息<{/t}><span style="font-size:12px; font-weight:normal; padding-left:20px; color:#666;">以下信息的完整及全面将有助于提升网店专业度及诚信度，让买家更愿在您店中购物</span></h4>
        <div class="division">
        <input type='hidden'  name='setting[system.shopname]' value="<{$n_shop_name}>"/>
        <input type='hidden'  name='setting[store.shop_url]' value="<{$n_shop_url}>"/>
      <table width="100%" border="0" cellpadding="0" cellspacing="0"  class="shop-setting">
      
       <tr>
          <th><{t}>商店名称：<{/t}></th>
          <td><{setting key="system.shopname" namespace="setting" display='false'}><span class="fontcolorBlue"><{t}><a href='index.php?ctl=sale/tools&act=seo'>SEO设置&raquo;</a><{/t}></span></td>
      </tr>
      <{if !$env.const.SAAS_MODE}>
      <tr>
          <th><{t}>商店网址：<{/t}></th>
          <td><{setting key="store.shop_url" size='30' namespace="setting" display='false'}><span class="notice-inline">例如:<b>http://www.shopex.cn/</b></span></td>
      </tr>
      <{/if}>
      
      
      
       <tr>
          <th><{t}>商店Logo：<{/t}></th>
          <td><div id="sitelogo"><{setting key="site.logo" namespace="setting" display='false'}></div></td>
      </tr>
      
        <tr>
      <th><span style="color:#ff0000;">*</span>经营范围：</th>
      <td>     
          <div id="telephone">
          <select name='setting[store.shop_type]'>
          <{foreach from=$category_list.category_list item=business}>
          <option value="<{$business.id}>"<{if $business.id eq $typeid}>selected<{/if}>><{$business.name}></option>
          <{/foreach}></select>
          </div>
          </td>
      </tr>
      
      
      <tr>
      <th><span style="color:#ff0000;">*</span>我的经营模式：</th>
      <td>
      <label><input  type="radio" name=setting[store.sell_type] value='1' <{if $jyms eq '1'}>checked<{/if}>/>零售</label>
      <label><input  type="radio" name=setting[store.sell_type] value='2' <{if $jyms eq '2'}>checked<{/if}>/>批发（代销）</label>
      <label><input  type="radio" name=setting[store.sell_type] value='3' <{if $jyms eq '3'}>checked<{/if}>/>零售+批发兼具</label>
   </td>
      </tr>
      
    
      <tr>
          <th><span style="color:#ff0000;">*</span><{t}>联系人：<{/t}></th>
          <td><div id="address"><{setting key="store.contact" namespace="setting" display='false' required=true}></div></td>
      </tr>
      
       <tr>
          <th><span style="color:#ff0000;">*</span><{t}>Email：<{/t}></th>
          <td><div id="email"><{setting key="store.email" namespace="setting" display='false' required=true}></div></td>
      </tr>
      
      
          <tr>
          <th>QQ：</th>
          <td>
            <div id="address"><{setting key="store.qq" namespace="setting" display='false'}></div>

          
          </td>
          
          
          
      </tr>
      
      <tr>
        <th>
     淘宝旺旺：
        </th>
        
        <td><div id="address"><{setting key="store.wangwang" namespace="setting" display='false'}></div></td>
      </tr>
      
      
       <tr>
          <th><{t}>手机：<{/t}></th>
          <td><div id="mobile"><{setting key="store.mobile" namespace="setting" display='false'}></div></td>
      </tr>
      <tr>
          <th><{t}>固定电话：<{/t}></th>
          <td>
          <div style="float:left;" ><{setting style="width:50px;" key="store.quhao" namespace="setting" display='false' }>- </div>
          <div style="float:left;" id="telephone"><{setting key="store.telephone" namespace="setting" display='false'}></div>
          
          </td>
      </tr>
     
      <tr>
          <th><span style=" color:#ff0000;">*</span><{t}>我所在地区：<{/t}></th>
          <td>
           <select name="province" onchange="TwoSelectInit(area,this.value)" id='province'></select>
           <select name="city" id='city'></select>
          
          </td>
      </tr>
 	
    <tr>
    <th>具体地址：</th>
    <td><{setting key="store.address" size='40' namespace="setting" display='false'}></td>
    </tr>

<!--
      <tr>
          <th><{t}>地址：<{/t}></th>
          <td><div id="address"><{setting key="store.address" namespace="setting" display='false'}></div></td>
      </tr>
      <tr>
          <th><{t}>邮编：<{/t}></th>
          <td><div id="zip_code"><{setting key="store.zip_code" namespace="setting" display='false'}></div></td>
      </tr>
 
       <tr>
          <th><{t}>网站所有人：<{/t}></th>
          <td><div id="telephone"><{setting key="store.site_owner" namespace="setting" display='false'}></div></td>
      </tr>
      <tr>
          <th><{t}>所属行业：<{/t}></th>
          <td>
          <div id="telephone">
          <select name='setting[store.business]'>
          <{foreach from=$category_list.category_list item=business}>
          <option value="<{$business.id}>"<{if $business.id eq $typeid}>selected<{/if}>><{$business.name}></option>
          <{/foreach}></select>
          </div>
          </td>
      </tr>
-->
       </table>
       </div>
       
       
       
       
       
       
 
       </div>

       <div class="table-action">
         <{button type="submit" id="on_submit" onclick="new  Request().post('index.php?ctl=system/setting&act=centerSend',$('site_basic').toQueryString());"  label="保存"}> 
       </div>

    </div>
</div>
</form>

<form action='index.php?ctl=system/setting&act=siteBasicEdit' method='post' class="settingform"  target="{update:'messagebox'}" id="site_basic" enctype="multipart/form-data">
  <input type='hidden' name='returl' value='index.php?ctl=system/setting&act=siteBasic' />
  <div class="tableform">
    

    <h4><{t}>其它设置<{/t}></h4>
        <div class="division">
      <table width="100%" border="0" cellpadding="0" cellspacing="0"  class="shop-setting">
      <tr>
          <th><{t}>备案号：<{/t}></th>
          <td><{setting key="site.certtext" namespace="setting" display='false'}><span class="notice-inline"><{t}>此处填写您在工信部备案管理网站申请的备案编号，详请登陆<{/t}><a href="http://www.miibeian.gov.cn" target="_blank"><{t}>官方网站<{/t}></a></span></td>
      </tr>
      <tr>
          <th><{t}>商品库存报警数量：<{/t}></th>
          <td><{setting key="system.product.alert.num" namespace="setting" size='2' display='false'}>
             &nbsp; <{help}>如果商品库存数量低于报警数量，系统上方会实时提醒您补充库存，点击提醒可以直接查看所有需要补货的商品<{/help}>
          </td>
      </tr>
       <tr>
          <th><{t}>库存预占时间点：<{/t}></th>
          <td><{setting key="system.store.time" namespace="setting" display='false'}><span class="notice-inline"><{t}><{/t}></span><{help}>设置库存预先扣除（占用）的时间点，而系统实际扣除库存时间点是发货操作。<{/help}></td>
      </tr>
      <tr>
          <th><{t}>后台登陆启用验证码：<{/t}></th>
          <td><{setting key="system.admin_verycode" namespace="setting" display='false'}></td>
      </tr>
      <tr>
          <th><{t}>上传最大尺寸：<{/t}></th>
          <td><{setting key="system.upload.limit" namespace="setting" display='false'}><span class="notice-inline"><{t}>注意：请谨慎选择，如果空间服务商配置有限制，尺寸过大可能会导致商店系统瘫痪<{/t}></span></td>
      </tr>
     <{*
       <tr>
          <th><{t}>后台启用可视化编辑器：<{/t}></th>
          <td><{setting key="system.editortype" namespace="setting" display='false'}> &nbsp;
            <{help}>如果不开启，后台所有用到编辑器的区域均使用HTML代码编辑器替换，可以提高系统运行效率<br /><br /><{t}>影响的区域包括：商品的详细介绍修改、支付方式/配送方式的详细介绍修改等<{/t}><{/help}></td>
      </tr> *}>
       <{if $auth_type=="commercial"}>
      <tr>
          <th>前台是否显示授权标志：</th>
          <td><div id="green"><{setting key="store.greencard" namespace="setting" display='false'}></div></td>
      </tr>
      <{/if}>
       </table>
       </div>

       <div class="table-action">
    <{button type="submit" id="on_submit" onclick="new  Request().post('index.php?ctl=system/setting&act=sendUpdateinfo',$('site_basic').toQueryString());"  label="保存"}>       </div>

  </div>

</form>

<style>
  #address { padding:2px 0;}
</style>

<script>
    var logo=$('sitelogo').getElement('img');
    if(logo){
        $('sitelogo').setStyles({'float':'none','position':'static'});
        logo.setStyles({'float':'none','position':'static'});
        new Element('div').injectAfter(logo);
    }
</script>


<script>



function TwoSelectInit(so,dv1,dv2){
	
	var o1=so.o1;var o2=so.o2;var allstr=so.str;var dt1=so.dt1;var dt2=so.dt2;var selectonce=so.selectonce;
	
	var _s = "*|^@";
	var s1=new Array(),v1=new Array(),s2=new Array(),v2=new Array();
	var s1i = 0,s2i = 0;
	if(dt1!=""){
		if(!selectonce){allstr=dt1+_s.charAt(1)+_s.charAt(0)+allstr;}
		else{allstr=dt1+_s.charAt(1)+dt2+_s.charAt(0)+allstr;}
	}
	aa=allstr.split(_s.charAt(0));
	for(aai=0;aai<aa.length;aai++){
		aaa=aa[aai].split(_s.charAt(1));
		tmps1 = aaa[0].split(_s.charAt(3));
		s1[aai] = tmps1[0];v1[aai] = (tmps1.length==2)?tmps1[1]:tmps1[0];
		s2[aai] = new Array();v2[aai] = new Array();
		if(v1[aai]==dv1){s1i = aai;}
		bbbb=aaa[1];
		if(dt2!=""&&!selectonce){if(bbbb==""){bbbb=dt2;}else{bbbb=dt2+_s.charAt(2)+bbbb;}}
		bb=bbbb.split(_s.charAt(2));
		for(bbi=0;bbi< bb.length;bbi++){
			tmps2 = bb[bbi].split(_s.charAt(3));
			s2[aai][bbi] = tmps2[0];v2[aai][bbi] = (tmps2.length==2)?tmps2[1]:tmps2[0];
			if(v2[aai][bbi]==dv2){s2i = bbi;}
		}
	}
	
	for(var i=0;i<o1.options.length;i++){
		
		//o1.remove(i);
		o1.removeChild(o1.options[i]); 
		i--;
		}
	
	for(k=0;k<s1.length;k++){o1.options.add(new Option(s1[k],v1[k]));}
	
	o1.selectedIndex=s1i;
	
	
	for(var i=0;i<o2.options.length;i++){ 
	//o2.remove(i);
	o2.removeChild(o2.options[i]); 
	i--;
	}
	
	
	for(k=0;k<s2[s1i].length;k++){o2.options.add(new Option(s2[s1i][k],v2[s1i][k]));}
	o2.selectedIndex=s2i;
	
	
}



function HwTwoSelect(o1,o2,liststr,dt1,dt2,t){ this.o1=o1;this.o2=o2;this.str=liststr;this.dt1=dt1;this.dt2=dt2;this.selectonce=t}


var selecttext=""
+"北京|东城^西城^崇文^宣武^朝阳^丰台^石景山^海淀^门头沟^房山^通州^顺义^昌平^大兴^平谷^怀柔^密云^延庆"
+"*上海|黄浦^卢湾^徐汇^长宁^静安^普陀^闸北^虹口^杨浦^闵行^宝山^嘉定^浦东^金山^松江^青浦^南汇^奉贤^崇明"
+"*天津|和平^东丽^河东^西青^河西^津南^南开^北辰^河北^武清^红挢^塘沽^汉沽^大港^宁河^静海^宝坻^蓟县"
+"*重庆|万州^涪陵^渝中^大渡口^江北^沙坪坝^九龙坡^南岸^北碚^万盛^双挢^渝北^巴南^黔江^长寿^綦江^潼南^铜梁^大足^荣昌^壁山^梁平^城口^丰都^垫江^武隆^忠县^开县^云阳^奉节^巫山^巫溪^石柱^秀山^酉阳^彭水^江津^合川^永川^南川"
+"*河北|石家庄^邯郸^邢台^保定^张家口^承德^廊坊^唐山^秦皇岛^沧州^衡水"
+"*山西|太原^大同^阳泉^长治^晋城^朔州^吕梁^忻州^晋中^临汾^运城"
+"*内蒙古|呼和浩特^包头^乌海^赤峰^呼伦贝尔盟^阿拉善盟^哲里木盟^兴安盟^乌兰察布盟^锡林郭勒盟^巴彦淖尔盟^伊克昭盟"
+"*辽宁|沈阳^大连^鞍山^抚顺^本溪^丹东^锦州^营口^阜新^辽阳^盘锦^铁岭^朝阳^葫芦岛"
+"*吉林|长春^吉林^四平^辽源^通化^白山^松原^白城^延边"
+"*黑龙江|哈尔滨^齐齐哈尔^牡丹江^佳木斯^大庆^绥化^鹤岗^鸡西^黑河^双鸭山^伊春^七台河^大兴安岭"
+"*江苏|南京^镇江^苏州^南通^扬州^盐城^徐州^连云港^常州^无锡^宿迁^泰州^淮安^淮阴^昆山^张家港^宜兴^江阴^常熟^周庄^海门^江都^启东^沭阳^同里^仪征"
+"*浙江|杭州^宁波^温州^嘉兴^湖州^绍兴^金华^衢州^舟山^台州^丽水"
+"*安徽|合肥^芜湖^蚌埠^马鞍山^淮北^铜陵^安庆^黄山^滁州^宿州^池州^淮南^巢湖^阜阳^六安^宣城^亳州"
+"*福建|福州^厦门^莆田^三明^泉州^漳州^南平^龙岩^宁德"
+"*江西|南昌市^景德镇^九江^鹰潭^萍乡^新馀^赣州^吉安^宜春^抚州^上饶"
+"*山东|济南^青岛^淄博^枣庄^东营^烟台^潍坊^济宁^泰安^威海^日照^莱芜^临沂^德州^聊城^滨州^菏泽"
+"*河南|郑州^开封^洛阳^平顶山^安阳^鹤壁^新乡^焦作^濮阳^许昌^漯河^三门峡^南阳^商丘^信阳^周口^驻马店^济源"
+"*湖北|武汉^宜昌^荆州^襄樊^黄石^荆门^黄冈^十堰^恩施^潜江^天门^仙桃^随州^咸宁^孝感^鄂州"
+"*湖南|长沙^常德^株洲^湘潭^衡阳^岳阳^邵阳^益阳^娄底^怀化^郴州^永州^湘西^张家界"
+"*广东|广州^深圳^珠海^汕头^东莞^中山^佛山^韶关^江门^湛江^茂名^肇庆^惠州^梅州^汕尾^河源^阳江^清远^潮州^揭阳^云浮"
+"*广西|南宁^柳州^桂林^梧州^北海^防城港^钦州^贵港^玉林^南宁地区^柳州地区^贺州^百色^河池"
+"*海南|海口^三亚"
+"*四川|成都^绵阳^德阳^自贡^攀枝花^广元^内江^乐山^南充^宜宾^广安^达川^雅安^眉山^甘孜^凉山^泸州"
+"*贵州|贵阳^六盘水^遵义^安顺^铜仁^黔西南^毕节^黔东南^黔南"
+"*云南|昆明^大理^曲靖^玉溪^昭通^楚雄^红河^文山^思茅^西双版纳^保山^德宏^丽江^怒江^迪庆^临沧"
+"*西藏|拉萨^日喀则^山南^林芝^昌都^阿里^那曲"
+"*陕西|西安^宝鸡^咸阳^铜川^渭南^延安^榆林^汉中^安康^商洛"
+"*甘肃|兰州^嘉峪关^金昌^白银^天水^酒泉^张掖^武威^定西^陇南^平凉^庆阳^临夏^甘南"
+"*宁夏|银川^石嘴山^吴忠^固原"
+"*青海|西宁^海东^海南^海北^黄南^玉树^果洛^海西"
+"*新疆|乌鲁木齐^石河子^克拉玛依^伊犁^巴音郭勒^昌吉^克孜勒苏柯尔克孜^博尔塔拉^吐鲁番^哈密^喀什^和田^阿克苏"
+"*香港|香港"
+"*澳门|澳门"
+"*台湾|台北^高雄^台中^台南^屏东^南投^云林^新竹^彰化^苗栗^嘉义^花莲^桃园^宜兰^基隆^台东^金门^马祖^澎湖"
+"*其它|北美洲^南美洲^亚洲^非洲^欧洲^大洋洲"
+"";




var area = new HwTwoSelect($('province'),$('city'),selecttext,"－省份－@","－城市－@",1);


TwoSelectInit(area);



var province =$('province');
var city = $('city');



var provincevalue= "<{$province}>";
var cityvalue= "<{$city}>";


for(var i=0;i<province.length;i++) {
	
	if(province.options[i].value == provincevalue && province.options[i].value!=""){
	
	 province.options[i].selected=true;
	
	 TwoSelectInit(area,province.options[i].value);
	  
	  for(var j=0;j<city.length;j++) {
			if(city.options[j].value==cityvalue) {
				city.options[j].selected=true;
				}
		}
	  
	  
	}
	}


</script>
